char countCharacters(const std::string & string)
{
	int alphabetsFrequency[256];
    	char maxOccuringAlphabet = 0;
	for(int i=0;i<256;++i)
		alphabetsFrequency[i]=0;
	for(size_t i=0;i<string.size();++i)
    	{
		char ch = string[i];

		++alphabetsFrequency[(int)ch];
		if (alphabetsFrequency[(int)ch] > alphabetsFrequency[(int)maxOccuringAlphabet])
{
			maxOccuringAlphabet= ch;	
}
	}
	return maxOccuringAlphabet;
}

int main()
{
	string testString("extremely easy question,just for warm up");
        char ch = countCharacters(testString);
	cout<<ch;
	return 0;
}